<?Php

include '../japp.php';
$php->session()->helper("oauth")->helper("function")->loaddb()->loadview()->init();



//QQ登录成功后的回调地址,主要保存access token
qq_callback(C("openid.qq_appid"),C("openid.qq_appkey"),C("openid.qq_callback"));

//获取用户标示id
$open_user = get_openid();

//设置session
$php->session->openstart=1;
$php->session->openid = $open_user->openid;

//得到用户模型，调用模型方法处理数据
$user = $php->M("user");
$user->userindex($php->session->openid);


$html = $php->view->render("index/xz.php");

echo jhtml($html);
